package config

import "wx-api/adx-api/common"

var MgTableAdxUser = &common.TkMongo{}
var MgTableAdxList = &common.TkMongo{}
var MgTableAdxApp = &common.TkMongo{}
var MgTableAdxSlot = &common.TkMongo{}
var MgTableAdxTemplate = &common.TkMongo{}

var MgTableChannelList = &common.TkMongo{}
var MgTableChannelSlot = &common.TkMongo{}
var MgTableChannelTemplate = &common.TkMongo{}

var MgTableSspList = &common.TkMongo{}
var MgTableSspApp = &common.TkMongo{}
var MgTableSspSlot = &common.TkMongo{}
var MgTableSspTemplate = &common.TkMongo{}
var MgTableAdxPlan = &common.TkMongo{}

func MgTableInit() {
	MgInit()
	//adx管理
	MgTableAdxUser.GetDB(MgDb, "wxmgdb", "adx_user")
	MgTableAdxList.GetDB(MgDb, "wxmgdb", "adx_list")
	MgTableAdxApp.GetDB(MgDb, "wxmgdb", "adx_app")
	MgTableAdxSlot.GetDB(MgDb, "wxmgdb", "adx_slot")
	MgTableAdxTemplate.GetDB(MgDb, "wxmgdb", "adx_template")
	//预算管理
	MgTableChannelList.GetDB(MgDb, "wxmgdb", "channel_list")
	MgTableChannelSlot.GetDB(MgDb, "wxmgdb", "channel_slot")
	MgTableChannelTemplate.GetDB(MgDb, "wxmgdb", "channel_template")
	//ssp管理
	MgTableSspList.GetDB(MgDb, "wxmgdb", "ssp_user")
	MgTableSspApp.GetDB(MgDb, "wxmgdb", "ssp_app")
	MgTableSspSlot.GetDB(MgDb, "wxmgdb", "ssp_slot")
	MgTableSspTemplate.GetDB(MgDb, "wxmgdb", "ssp_template")
	MgTableAdxPlan.GetDB(MgDb, "wxmgdb", "adx_plan")
}
